/*
 * @Author: wdfky 15139746+hegemondin@user.noreply.gitee.com
 * @Date: 2025-03-11 19:39:32
 * @LastEditors: wdfky 15139746+hegemondin@user.noreply.gitee.com
 * @LastEditTime: 2025-03-12 18:02:45
 * @FilePath: \frist_vue\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "/homework",
    component: () => import("../views/HomeworkView.vue"),
  },
  // {
  //   path: "/homework",
  //   name: "/homework",
  //   component: () => import("../views/HomeworkView.vue"),
  // },
  {
    path: "/home",
    name: "home",
    component: () => import("../views/HomeView.vue"),
  },
  {
    path: "/upwindow",
    name: "upwindow",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/UpwindowView.vue"),
  },
  {
    path: "/shuju",
    name: "shuju",
    component: () => import("../views/ShujuView.vue"),
  },
  {
    path: "/wechat",
    name: "wechat",
    component: () => import("../views/wechat/WechatView.vue"),
  },
  {
    path: "/list",
    name: "list",
    component: () => import("../views/list/ListView.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
